package com.platform.modules.acme.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;


/**
 * @Author davenTsang
 * @Description 验证信息
 */
@Data
@TableName("acme_auth_info")
public class AcmeAuthEntity {

    /**
     * 主键ID
     */
    @TableId
    private String authId;

    /**
     * 验证地址
     */
    private String authUrl;

    /**
     * 验证类型
     */
    private String authType;

    /**
     * 验证状态
     * RFC8555 7.1.4. Authorization Objects
     *      pending(初始状态)|valid(验证通过)|invalid(验证失败)|deactivated(用户使验证记录失效)|expired(过期)|revoked(服务端撤销该验证记录)
     */
    private String status;


    /**
     * 域名
     */
    private String domainName;

    /**
     * 过期时间
     * This field is REQUIRED for objects with "valid" in the "status" field.
     *
     */
    private LocalDateTime expireTime;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;


}
